Online IVR Tutorial Record <seconds>
Parameters Remarks Example
    ....
    ....
    //The sample works only on full-duplex voice cards
    $Recordfile = "Sample.wav"
    Record 30

    while int(RecordTimeLeft()/1000) > 10
        sleep 100
    endwhile

    //10 more seconds to stop recording
    //play beep to conclude the talk
    beep
    wait 0
    ....
    ....